<?php

namespace D3hdv\HdvBundle\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * HdvVente
 *
 * @ORM\Table()
 * @ORM\Entity(repositoryClass="D3hdv\HdvBundle\Entity\HdvVenteRepository")
 */
class HdvVente
{
    /**
     * @var integer
     *
     * @ORM\Column(name="id", type="integer")
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="AUTO")
     */
    private $id;

    /**
     * @var integer
     *
     * @ORM\Column(name="idCompteVendeur", type="integer")
     */
    private $idCompteVendeur;

   /**
    * @ORM\ManyToOne(targetEntity="D3hdv\HdvBundle\Entity\HdvCompte")
    * @ORM\JoinColumn(nullable=true)
    */
   private $CompteAcheteur;

   /**
    * @ORM\ManyToOne(targetEntity="D3hdv\Diablo3Bundle\Entity\D3Objet")
    * @ORM\JoinColumn(nullable=false)
    */
   private $D3Objet;
	
   /**
     * @var integer
     *
     * @ORM\Column(name="idD3ObjetModele", type="integer")
     */
    private $idD3ObjetModele;


    /**
     * @var integer
     *
     * @ORM\Column(name="typePaiement", type="integer")
     */
    private $typePaiement;

    /**
     * @var integer
     *
     * @ORM\Column(name="prix", type="integer")
     */
    private $prix;

    /**
     * @var integer
     *
     * @ORM\Column(name="qte", type="integer")
     */
    private $qte;

    /**
     * @var boolean
     *
     * @ORM\Column(name="prixCorrect", type="boolean")
     */
    private $prixCorrect;
	
    /**
     * @var datetime $dateDebut
     *
     * @ORM\Column(name="dateDebut", type="datetime")
     */
    private $dateDebut;

    /**
     * @var datetime $datefin
     *
     * @ORM\Column(name="dateFin", type="datetime",nullable=true)
     */
    private $dateFin;

    public function __construct()
    {
	$this->compteAcheteur = NULL;
	$this->dateDebut = new \Datetime(); 
    }
    /**
     * Get id
     *
     * @return integer 
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * Set prix
     *
     * @param boolean $prix
     * @return HdvVente
     */
    public function setPrix($prix)
    {
        $this->prix = $prix;
    
        return $this;
    }

    /**
     * Get prix
     *
     * @return boolean 
     */
    public function getPrix()
    {
        return $this->prix;
    }

    /**
     * Set typePaiement
     *
     * @param boolean $typePaiement
     * @return HdvVente
     */
    public function setTypePaiement($typePaiement)
    {
        $this->typePaiement = $typePaiement;
    
        return $this;
    }

    /**
     * Get typePaiement
     *
     * @return boolean 
     */
    public function getTypePaiement()
    {
        return $this->typePaiement;
    }

    /**
     * Set qte
     *
     * @param integer $qte
     * @return HdvVente
     */
    public function setQte($qte)
    {
        $this->qte = $qte;
    
        return $this;
    }

    /**
     * Get qte
     *
     * @return integer 
     */
    public function getQte()
    {
        return $this->qte;
    }

    /**
     * Set prixCorrect
     *
     * @param boolean $prixCorrect
     * @return HdvVente
     */
    public function setPrixCorrect($prixCorrect)
    {
        $this->prixCorrect = $prixCorrect;
    
        return $this;
    }

    /**
     * Get prixCorrect
     *
     * @return boolean 
     */
    public function getPrixCorrect()
    {
        return $this->prixCorrect;
    }

    /**
     * Set dateDebut
     *
     * @param \DateTime $dateDebut
     * @return HdvVente
     */
    public function setDateDebut($dateDebut)
    {
        $this->dateDebut = $dateDebut;
    
        return $this;
    }

    /**
     * Get dateDebut
     *
     * @return \DateTime 
     */
    public function getDateDebut()
    {
        return $this->dateDebut;
    }

    /**
     * Set dateFin
     *
     * @param \DateTime $dateFin
     * @return HdvVente
     */
    public function setDateFin($dateFin)
    {
        $this->dateFin = $dateFin;
    
        return $this;
    }

    /**
     * Get dateFin
     *
     * @return \DateTime 
     */
    public function getDateFin()
    {
        return $this->dateFin;
    }

    /**
     * Set CompteAcheteur
     *
     * @param \D3hdv\HdvBundle\Entity\HdvCompte $compteAcheteur
     * @return HdvVente
     */
    public function setCompteAcheteur(\D3hdv\HdvBundle\Entity\HdvCompte $compteAcheteur = null)
    {
        $this->CompteAcheteur = $compteAcheteur;
    
        return $this;
    }

    /**
     * Get CompteAcheteur
     *
     * @return \D3hdv\HdvBundle\Entity\HdvCompte 
     */
    public function getCompteAcheteur()
    {
        return $this->CompteAcheteur;
    }

 public function removeCompteAcheteur()
    {
        $this->CompteAcheteur = NULL;
    
        return $this;
    }

    /**
     * Set D3Objet
     *
     * @param \D3hdv\Diablo3Bundle\Entity\D3Objet $d3Objet
     * @return HdvVente
     */
    public function setD3Objet(\D3hdv\Diablo3Bundle\Entity\D3Objet $d3Objet)
    {
        $this->D3Objet = $d3Objet;
    
        return $this;
    }

    /**
     * Get D3Objet
     *
     * @return \D3hdv\Diablo3Bundle\Entity\D3Objet 
     */
    public function getD3Objet()
    {
        return $this->D3Objet;
    }

    /**
     * Set idD3ObjetModele
     *
     * @param integer $idD3ObjetModele
     * @return HdvVente
     */
    public function setIdD3ObjetModele($idD3ObjetModele)
    {
        $this->idD3ObjetModele = $idD3ObjetModele;
    
        return $this;
    }

    /**
     * Get idD3ObjetModele
     *
     * @return integer 
     */
    public function getIdD3ObjetModele()
    {
        return $this->idD3ObjetModele;
    }

    /**
     * Set idCompteVendeur
     *
     * @param integer $idCompteVendeur
     * @return HdvVente
     */
    public function setIdCompteVendeur($idCompteVendeur)
    {
        $this->idCompteVendeur = $idCompteVendeur;
    
        return $this;
    }

    /**
     * Get idCompteVendeur
     *
     * @return integer 
     */
    public function getIdCompteVendeur()
    {
        return $this->idCompteVendeur;
    }
}
